// in.c
// Sample C program with for loop array manipulation.

int main()
{
  int a[101], b[101], c[98];
    int i;

    b[1] = 4;
    a[100] = 7;
    
    for (i=1; i<99; i++) {
      a[i] = b[i-1] + c[i-1] + 5;
      b[i] = (c[i] + b[i+1]) / 2;
      c[i] = a[i] + 1;
    }

    printf("%f\n", a[9]);
    return 0;
}


